package com.okyai.qa.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 答案对象 qa_questionnaire_answers
 * 
 * @author okyai
 * @date 2021-03-16
 */
public class QuestionnaireAnswers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long questionsAnswerId;

    /** 问题主键 */
    @Excel(name = "问题主键")
    private Long questionsId;

    /** 答案序号 */
    @Excel(name = "答案序号")
    private Long index;

    /** 答案内容 */
    @Excel(name = "答案内容")
    private String answerText;

    /** 输入答案类型[01无02文本03时间] */
    @Excel(name = "输入答案类型[01无02文本03时间]")
    private String inputType;

    /** 输入答案 */
    @Excel(name = "输入答案")
    private String inputText;

    /** 是否默认选项 */
    @Excel(name = "是否默认选项")
    private String isDefault;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String rightKey;

    /** 分值 */
    @Excel(name = "分值")
    private Long score;

    /** 得分方式 */
    @Excel(name = "得分方式")
    private String scoreType;

    public void setQuestionsAnswerId(Long questionsAnswerId) 
    {
        this.questionsAnswerId = questionsAnswerId;
    }

    public Long getQuestionsAnswerId() 
    {
        return questionsAnswerId;
    }
    public void setQuestionsId(Long questionsId) 
    {
        this.questionsId = questionsId;
    }

    public Long getQuestionsId() 
    {
        return questionsId;
    }
    public Long getIndex() {
		return index;
	}

	public void setIndex(Long index) {
		this.index = index;
	}

	public void setAnswerText(String answerText) 
    {
        this.answerText = answerText;
    }

    public String getAnswerText() 
    {
        return answerText;
    }
    public void setInputType(String inputType) 
    {
        this.inputType = inputType;
    }

    public String getInputType() 
    {
        return inputType;
    }
    public void setInputText(String inputText) 
    {
        this.inputText = inputText;
    }

    public String getInputText() 
    {
        return inputText;
    }
    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }
    public void setRightKey(String rightKey) 
    {
        this.rightKey = rightKey;
    }

    public String getRightKey() 
    {
        return rightKey;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setScoreType(String scoreType) 
    {
        this.scoreType = scoreType;
    }

    public String getScoreType() 
    {
        return scoreType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionsAnswerId", getQuestionsAnswerId())
            .append("questionsId", getQuestionsId())
            .append("index", getIndex())
            .append("answerText", getAnswerText())
            .append("inputType", getInputType())
            .append("inputText", getInputText())
            .append("isDefault", getIsDefault())
            .append("remark", getRemark())
            .append("rightKey", getRightKey())
            .append("score", getScore())
            .append("scoreType", getScoreType())
            .toString();
    }
}
